﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1.DesignerPatter.Observer.Event
{
    class StockObserverEvent
    {
        string name;
        IEventSubject isub;

        public StockObserverEvent(string name,IEventSubject paramSub)
        {
            this.name = name;
            this.isub = paramSub;
        }

        public void CloseObserver()
        {
            Console.WriteLine("{0}，{1}","李世杰",isub.strState);
            Console.Read();
        }
    }
}
